<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>插值表达式</title>
    <script src="vue.js"></script>
</head>
<body>
    <div id="app">
        <!--插值输出常量-->
        {{"Giles"}}<br>
        {{36}}<br>
        <!--变量-->
        {{name}}<br>
        {{"Hello"+name}}<br>
        {{age+1}}<br>
        <!--表达式-->
        {{age>18?"成年人":"未成年"}}
    </div>
</body>
</html>
<script>
    var vm=new Vue({
        el:'#app',
        data:{
            name:'jerry',
            age:33
        }
    });
</script>